﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="入住登记.aspx.cs" Inherits="入住登记" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .auto-style2 {
            width: 606px;
        }
        .auto-style3 {
            height: 19px;
        }
        .auto-style4 {
            height: 18px;
        }
        .auto-style5 {
            height: 21px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="right" Runat="Server">
      <table style="WIDTH: 703px; HEIGHT: 51px" cellSpacing="0" borderColorDark="#cccccc" cellPadding="5" align="center" borderColorLight="#000000" border="1">
				    
    				<tr bgColor="#cccccc">
					<td vAlign="center" align="middle" bgcolor="Maroon"   colSpan="2"><FONT size="6"><STRONG><FONT face="楷体_GB2312" color="yellow"  > 酒店客房管理</FONT> <FONT size="4"  color="yellow">--入住登记</FONT></STRONG></FONT>
					    
					</td>
				</tr> </table>
      <br /><center>

      <table class="auto-style2">
          <tr>
              <td>客户姓名：</td>
              <td>
                  <asp:TextBox ID="tbx_uname" runat="server"></asp:TextBox>
              </td>
              <td>
                    <asp:RequiredFieldValidator ID="re2" runat="server" ControlToValidate="tbx_uname" ErrorMessage="姓名不能为空！" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
          </tr>
          <tr>
              <td>客户证件号：</td>
              <td>
                  <asp:TextBox ID="txtnu" runat="server"></asp:TextBox>
              </td>
              <td>
                    <asp:RequiredFieldValidator ID="re3" runat="server" ControlToValidate="txtnu" ErrorMessage="证件号不能为空！" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
          </tr>
          <tr>
              <td class="auto-style3">电话号码：</td>
              <td class="auto-style3">
                  <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
              </td>
              <td class="auto-style3">
                    <asp:RequiredFieldValidator ID="re4" runat="server" ControlToValidate="TextBox3" ErrorMessage="号码不能为空！" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
          </tr>
          <tr>
              <td class="auto-style4">入住日期：</td>
              <td class="auto-style4">
                  <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                  <asp:CalendarExtender ID="TextBox5_CalendarExtender" runat="server" Enabled="True" TargetControlID="TextBox5" Format="yyyy/MM/dd">
                  </asp:CalendarExtender>
              </td>
              <td class="auto-style4"></td>
          </tr>
          <tr>
              <td class="auto-style4">退房日期：</td>
              <td class="auto-style4">
                  <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
                  <asp:CalendarExtender ID="TextBox6_CalendarExtender" runat="server" Enabled="True" TargetControlID="TextBox6" Format="yyyy/MM/dd">
                  </asp:CalendarExtender>
              </td>
              <td class="auto-style4"></td>
          </tr>
          </center>
          <tr>
              <td class="auto-style5">入住人数：</td>
              <td class="auto-style5">
                  <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
              </td>
              <td class="auto-style5"></td>
          </tr>
          <tr>
              <td class="auto-style5">房间号</td>
              <td class="auto-style5">
                  <asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
              </td>
              <td class="auto-style5">&nbsp;</td>
          </tr>
          </table>
     <br />
    <tr vAlign="center" align="middle" bgColor="#eeeeee">
					<td bgColor="#eeeeee" colSpan="2" class="auto-style4">
						<br />
            <asp:ScriptManager ID="ScriptManager1" runat="server">
          </asp:ScriptManager>
            <asp:Button ID="btnL" runat="server" BackColor="#f52b00" BorderStyle="None" Height="24px"  Text="提交" Width="136px" style="background-color: #66FFFF" OnClick="btnL_Click" />

          <br />
          <br />
						<div align="center"><FONT face="宋体">
								<DIV align="center"><FONT face="宋体"><A href="首页.aspx">返回</A> </FONT>
								</DIV>
							</FONT>
						</div>
					</td>
				</tr>
          <br />
          <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="U_number" AllowPaging="True" AllowSorting="True" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
              <Columns>
                  <asp:BoundField DataField="U_name" HeaderText="客户姓名" />
                  <asp:BoundField DataField="U_number" HeaderText="客户证件号" ReadOnly="True" />
                  <asp:BoundField DataField="U_phone" HeaderText="电话号码" />
                  <asp:BoundField DataField="U_rdate" HeaderText="入住日期" />
                  <asp:BoundField DataField="U_tdate" HeaderText="退房日期" />
                  <asp:BoundField DataField="U_prnum" HeaderText="入住人数" />
                  <asp:BoundField DataField="G_number" HeaderText="房间号" />
              </Columns>
          </asp:GridView>
         
          <asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>
         
          <br />
      <br />
</asp:Content>

